package com.zhouyer.study.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户服务Feign本地接口
 *
 * @author zhouyao
 * @version 1.0
 * @date 2021/12/7 10:31 下午
 */
@FeignClient(value = "zhouyer-service-user", path = "/user")
public interface UserFeignClient {
    @GetMapping("/info/{token}")
    String userEmailInfo(@PathVariable("token") String token);
}
